<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 全写 -->
        <a v-bind:href="myhref">百度</a>
        <!-- 简写 -->
        <a :href="myhref">百度</a>
        <!-- 图片 -->
        <input type="checkbox" v-model="flag">
        <!-- <img :src="flag?imgObj.mysrc:imgObj.mywomen" alt=""> -->
        <!--  -->
        <input type="text" :disabled="flag">
    </div>
    <script src="./vue.js"></script>
    <script>
        // v-bind:属性=属性值;  给组件或元素绑定属性
        // 简写 :属性=属性值;
        // 自带属性  class style  id href src title type checked disabled 

        new Vue({
            el: "#app",
            data() {
                return {
                    flag: true,
                    myhref: "http://baidu.com",
                    imgObj: {
                        mysrc: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1114%2F060421091316%2F210604091316-2-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1637822558&t=0026061a6f113cdd242e0f951b9f0890",
                        mywomen: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202107%2F17%2F20210717200148_c6932.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1637822558&t=d7151efa80f91d759bba39a16f0dcb9a"
                    }
                }
            },
            methods: {

            },
        })
    </script>
</body>

</html>